from langchain_openai import ChatOpenAI
from dotenv import load_dotenv
import os
load_dotenv()
def getLLM():
    llm = ChatOpenAI(model="qwen2.5:7b",base_url="http://192.168.1.102:64342/v1/",api_key="123")
    return llm

def getDSLLM():
    base_url = "https://api.siliconflow.cn/v1" #硅基流动
    llm = ChatOpenAI(model="deepseek-ai/DeepSeek-R1-0528-Qwen3-8B", base_url=base_url, api_key=os.getenv("DS_KEY"))
    return llm